# -*- coding: utf-8 -*-
from django import template
register = template.Library()
#from django.forms.widgets import CheckboxInput

#def set_is_chekbox(f):
#    f.is_checkbox = isinstance(f.field.widget, CheckboxInput)
#    return f

@register.inclusion_tag('templatetools/forms/form.html')
def show_form(form):
    return {'form': form }
    #return {'form': map(set_is_chekbox, form)}
